﻿using System.ComponentModel.DataAnnotations;
using Abp.Application.Services.Dto;
using Hicap.AuthorizationServer.Core.Models.Other;

namespace Hicap.AuthorizationServer.Application.Dto
{
    public class AuthObjectEditDto : FullAuditedEntityDto<int?>
    { /// <summary>
      /// 权限编码
      /// </summary>
        [Required]
        [StringLength(EntityLengthConst.LongCode)]
        public string ObjectCode { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        [Required]
        [StringLength(EntityLengthConst.LongName)]
        public string ObjectName { get; set; }

        public sbyte IsTailNode { get; set; }

        public int? ParentObjectId { get; set; }

        public bool IsActive { get; set; }
    }
}